<?php // print_r($_SERVER);        ?>
<?php // echo $rdr;         ?>
<div id="frame" class="outline">
    <?php
    $action = "user/login";
    if (isset($rdr)) {
        $action .="?rdr=$rdr";
    }
//    echo form_open($action);
    ?>
    <input type="hidden" name="rdr" value="<?php
    if (isset($rdr)) {
        echo $rdr;
    }
    ?>">
    <!--<p>Login: <input type="text" name="login"></p>-->
    <!--<p>Senha: <input type="password" name="senha"></p>-->
    <!--<input type="submit" >-->
    <!--</form>-->
    <?php
    if ($errormsg != '') {
        echo "<b>" . $errormsg . "</b>";
    }
    ?>

    <?php
    echo form_fieldset();
    echo form_open($action);
    echo form_label('Login', 'login');
    echo form_input("login", $login, 'id=login');
    echo "<br>";
    echo form_label('Senha', 'password');
    echo form_password("password", '', 'id=password');
    echo "<br>";
    echo form_submit('entrar', 'Entrar');
    echo form_close();
    echo form_fieldset_close();
    ?>
</div>